import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
  { path: '/', component: () => import('@/views/index'), meta: {keepAlive: true} },
  { path: '/donelist', component: () => import('@/views/donelist') },
  { path: '/edit', component: () => import('@/views/edit') },
]

const router = createRouter({
  history: createWebHashHistory(), // 必须为hash模式，否则build打包为空白页，history需配合后端使用
  routes
})

export default router